package ro.imc.training.UMS;

import java.io.IOException;
import java.sql.SQLException;
import java.util.ArrayList;

import ro.imc.training.Database.DBCreate;
import ro.imc.training.Database.StudentCrud;

public class Main {

	/**
	 * @param args
	 * @throws IOException 
	 * @throws SQLException 
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 */
	public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException, IOException {
	new UserInterface();

		Database db = new Database();
		Database.create();
		
		
		
		
		
//	new DBCreate();
		
		
//	Student s = new Student("BAasfZA", "DAfasTE", "a", "a", "a");
//	StudentCrud st = new StudentCrud();
//	st.insert((Object)s);
//	ArrayList<Object> al = new ArrayList<Object>();
//	al = (ArrayList<Object>)st.read();
//	ArrayList<Student> al2 = new ArrayList<Student>();
//	for(Object o : al) {
//		al2.add((Student)o);
//	}
//	
//	System.out.println(al2.get(1).getFirstName() + al2.get(1).getLastName() );

	
	}

}
